import { Button, View } from '@tarojs/components';
import './index.scss';
import '../../style/button.scss';
import '../../style/background.scss'
import Taro from '@tarojs/taro';
const Test: React.FC<null> = () => {

  return <View className='common-bg'>
    <Button className='common-button' onClick={() => { Taro.navigateTo({ url: '../index/index' }) }}>前往首页</Button>
    <Button className='common-button' onClick={() => { Taro.navigateTo({ url: '../login/index' }) }}>前往登陆</Button>
    <Button className='common-button' onClick={() => { Taro.navigateTo({ url: '../register/index' }) }}>前往注册</Button>
    <Button className='common-button' onClick={() => { Taro.navigateTo({ url: '../chatting/index' }) }}>前往聊天</Button>

    {/* <ConsultantCard cid='test0' portrait={'https://pic2.imgdb.cn/item/64494af00d2dde57777da267.png'}
      name={'咨询师A'} visited={true} score={4} state={0}></ConsultantCard>
    <ConsultantCard cid='test1' portrait={'https://pic2.imgdb.cn/item/64494af00d2dde57777da267.png'}
      name={'咨询师B'} visited={false} score={3.2} state={1}></ConsultantCard> */}

  </View>
}
export default Test;

function useLoad(arg0: () => Promise<void>) {
  throw new Error('Function not implemented.');
}

